package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.QualityInspectionPlanMapper;
import com.ruoyi.mes.domain.QualityInspectionPlan;
import com.ruoyi.mes.service.IQualityInspectionPlanService;

/**
 * 质检计划管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class QualityInspectionPlanServiceImpl implements IQualityInspectionPlanService 
{
    @Autowired
    private QualityInspectionPlanMapper qualityInspectionPlanMapper;

    /**
     * 查询质检计划管理
     * 
     * @param planId 质检计划管理主键
     * @return 质检计划管理
     */
    @Override
    public QualityInspectionPlan selectQualityInspectionPlanByPlanId(Long planId)
    {
        return qualityInspectionPlanMapper.selectQualityInspectionPlanByPlanId(planId);
    }

    /**
     * 查询质检计划管理列表
     * 
     * @param qualityInspectionPlan 质检计划管理
     * @return 质检计划管理
     */
    @Override
    public List<QualityInspectionPlan> selectQualityInspectionPlanList(QualityInspectionPlan qualityInspectionPlan)
    {
        return qualityInspectionPlanMapper.selectQualityInspectionPlanList(qualityInspectionPlan);
    }

    /**
     * 新增质检计划管理
     * 
     * @param qualityInspectionPlan 质检计划管理
     * @return 结果
     */
    @Override
    public int insertQualityInspectionPlan(QualityInspectionPlan qualityInspectionPlan)
    {
        return qualityInspectionPlanMapper.insertQualityInspectionPlan(qualityInspectionPlan);
    }

    /**
     * 修改质检计划管理
     * 
     * @param qualityInspectionPlan 质检计划管理
     * @return 结果
     */
    @Override
    public int updateQualityInspectionPlan(QualityInspectionPlan qualityInspectionPlan)
    {
        return qualityInspectionPlanMapper.updateQualityInspectionPlan(qualityInspectionPlan);
    }

    /**
     * 批量删除质检计划管理
     * 
     * @param planIds 需要删除的质检计划管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityInspectionPlanByPlanIds(Long[] planIds)
    {
        return qualityInspectionPlanMapper.deleteQualityInspectionPlanByPlanIds(planIds);
    }

    /**
     * 删除质检计划管理信息
     * 
     * @param planId 质检计划管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityInspectionPlanByPlanId(Long planId)
    {
        return qualityInspectionPlanMapper.deleteQualityInspectionPlanByPlanId(planId);
    }
}
